package com.hmi.simulatedrive.utils

import android.location.Location
import com.unity3d.player.UnityPlayer

object Constant {
    public var mUnityPlayer : UnityPlayer? = null

    val SETTING_IP: String = "SETTING_IP" // 连接中控机的IP
    val SETTING_LOCATION_PORT: String = "SETTING_LOCATION_PORT" // 位置订阅的端口号
    val SETTING_CONTROLLER_PORT: String = "SETTING_CONTROLLER_PORT" // 控制信号的端口号
    val SETTING_UNITY_PORT: String = "SETTING_UNITY_PORT" // Unity订阅的端口号
    val SETTING_SIMULATE_NAVI: String = "SETTING_SIMULATE_NAVI" // 是否模拟导航
    val SETTING_WEBRTC_URL: String = "SETTING_WEBRTC_URL" // webRTC显示倒车影像的url地址

    val DEFAULT_SIM_IP = "10.0.0.176" // 默认IP地址
    val DEFAULT_LOCATION_PORT = "5552" // 默认位置订阅端口号
    val DEFAULT_CONTROLLER_PORT = "5553" // 默认车辆控制端口号
    val DEFAULT_UNITY_PORT = "5556" // 默认Unity端口号

    var currentLocation: Location? = null

    val EVENT_WHAT_UPDATE_WEBRTC = 0x01
}